home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / intlib / int_driver_proc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-21  |  694 b   |  38 lines

  1. /*
  2. ### procedure for selecting an integration driver ###
  3. */
  4.  
  5. #include <suntool/sunview.h>
  6. #include <suntool/panel.h>
  7.  
  8. #define STANDARD 0
  9. #define TIME    1
  10. #define QC    2
  11. #define SYMP_START 2
  12. #define SYMP_END 5
  13.  
  14. void 
  15. int_driver_proc(item,value,event)
  16. Panel_item      item;
  17. int             value;
  18. Event          *event;
  19. {
  20.         extern int symp_int_on,int_driver,int_algorithm;
  21.  
  22.         int_driver = value;
  23.     if(int_driver == STANDARD || int_driver == TIME){
  24.         if(int_algorithm >=  SYMP_START && int_algorithm <= SYMP_END) {
  25.             symp_int_on = 1;
  26.         }
  27.         else {
  28.             symp_int_on = 0;
  29.         }
  30.     }
  31.     else if(int_driver == QC ){
  32.         symp_int_on = 0;
  33.     }
  34.  
  35.     (void) destroy_int_windows();
  36.     (void) create_int_windows();
  37. }
  38.